//封装请求
function request(params){
		return new Promise((resolve,reject)=>{
			uni.showLoading({
				title:"加载中"
			})
			uni.request({
				...params,
				success:({data})=>{
					resolve(data)
				},
				complete:({data})=>{
					uni.hideLoading()
				}
			})
		})
}
export default request